package com.etc.springbootmqconsumer.config;

import com.etc.springbootmqconsumer.constants.RabbitConsts;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.*;
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: Wangcc
 * @Date: 2019/9/29 16:30
 * @Description:
 */

@Slf4j
@Configuration
public class RabbitMqConfig {

    @Bean
    public Queue queue() {
        return new Queue(RabbitConsts.DIRECT_MODE_QUEUE_ONE);
    }


}
